package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.CCashier;
import com.itgaoshu.hospitalproject.mapper.xmjfMapper;
import com.itgaoshu.hospitalproject.service.xmjfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class xmjfServiceImpl implements xmjfService {

    @Autowired
    private xmjfMapper xmjfMapper;
    //查询用户所有的项目然后
    @Override
    public List<CCashier> selxiang(Integer perid) {
        return xmjfMapper.selxiang(perid);
    }
    //查询该用户有没有收费项目
    @Override
    public Integer selshoux(Integer perid) {
        return xmjfMapper.selshoux(perid);
    }
    //项目收费修改项目的收费状态
    @Override
    public Integer updxiang(Integer perid) {
        return xmjfMapper.updxiang(perid);
    }
    //项目检查页面查询用户所有要检查的项目
    @Override
    public List<CCashier> selcha(Integer perid) {
        return xmjfMapper.selcha(perid);
    }
    //添加项目的检查结果
    @Override
    public Integer addjie(CCashier cCashier) {
        return xmjfMapper.addjie(cCashier);
    }
}
